﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SPMS.Commons.Logging
{
    /// <summary>
    /// 哑元日志对象
    /// </summary>
    /// <remarks></remarks>
    /// <history>
    /// [zanezeng]   2009-2-24 14:29    Created
    /// </history>
    public sealed class DumbLog : AbstractLog
    {
        #region ---Constructor

        /// <summary>
        /// 初始化类型<see cref="DumbLog"/>的新实例
        /// </summary>
        /// <remarks></remarks>
        /// <history>
        /// [zanezeng]               2009/9/24 13:57    创建
        /// </history>
        /// <remarks></remarks>
        /// <history>
        /// [zanezeng]               2009/9/24 15:57    创建
        /// </history>
        public DumbLog()
            : base( LogLevelEnum.Off )
        {
        }

        #endregion

        #region ---Protected Method

        /// <summary>
        /// 输出日志信息
        /// </summary>
        /// <param name="level">要输出的日志信息的级别</param>
        /// <param name="ex">需要输出到日志的异常对象</param>
        /// <param name="message">需要输出到日志的信息</param>
        /// <remarks></remarks>
        /// <history>
        /// [zanezeng]               2009/9/24 13:44    创建
        /// </history>
        /// <remarks></remarks>
        /// <history>
        /// [zanezeng]               2009/9/24 15:56    创建
        /// </history>
        protected override void WriteLogInternal( LogLevelEnum level, Exception ex, object message )
        {
            //什么也不做
        }

        #endregion
    }
}
